namespace DesignPattern.Behavioral.Observer
{
    public class ObserverPattern
    {
        public static void Test()
        {
            var bellEvent = new BellEvent();
            bellEvent.AddBellEventListener(new Teacher());
            bellEvent.AddBellEventListener(new Student());

            bellEvent.Ring(RingType.CLASS_BEGINS);
            bellEvent.Ring(RingType.CLASS_OVER);
        }
    }
}